
<div class="dvthicongs index">
	
	<!-- <h2><?php __('Ds các đơn vị thi công');?></h2> -->
	<h2 ><b>DANH SÁCH ĐƠN VỊ THI CÔNG</b></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			
			 <th><?php echo $this->Paginator->sort('Số thứ tự','id');?></th>
			<th><?php echo $this->Paginator->sort('Tên đơn vị thi công','tendvthicong');?></th> 
			
			<th class="actions"><b><?php __('Điều chỉnh');?></b></th>
	</tr>
	<?php
	$i = 0;
	foreach ($dvthicongs as $dvthicong):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $i; ?>&nbsp;</td>
		<td><?php echo $dvthicong['Dvthicong']['tendvthicong']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Sửa', true), array('action' => 'edit', $dvthicong['Dvthicong']['id'])); ?>
		
			<?php echo $this->Html->link(__('Xóa', true), array('action' => 'delete', $dvthicong['Dvthicong']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $dvthicong['Dvthicong']['id'])); ?>
				
		<?php echo $this->Html->link(__('Công trình đã thi công', true),  array('action' => 'cttc', $dvthicong['Dvthicong']['id'])); ?>

		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<!-- <p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p> -->

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Lùi lại', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Tiếp theo', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
	
<div align="left" class="actions">
	<!-- <h3><?php __('Actions'); ?></h3> -->
	<ul>
		<li><?php echo $this->Html->link(__('Thêm đơn vị thi công', true), array('action' => 'add')); ?></li>
		
	</ul>
</div>
</div>
